#pragma once
#include "Globals.h"
#include "Collider.h"
#include "Tile.h"
class Physics
{
public:
	enum Axis{
		Vertical,
		Horizontal,
		All,
		HorizontalPositive,
		HorizontalNegative,
		VerticalPositive,
		VerticalNegative,
	};

	static bool AddDynamicObject(Collider*);
	static bool RemoveDynamicObject(Collider*);
	static Tile* IsCollidingStatic(Tile*, int, int, Collider*, Axis);
	static Collider* IsCollidingDynamic(Collider*, Axis);

private:
	static std::vector<Collider*> m_dynamicObjects;
	static int m_dynamicObjectsCount;

};

